package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.BroadBandAndPhoneDomain;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MJS on 2017/5/31.
 */
public interface BroadBandAndPhoneRepository extends JpaRepository<BroadBandAndPhoneDomain, Long> {

    public BroadBandAndPhoneDomain findByOutTradeNo(String outTrade);

    public BroadBandAndPhoneDomain findByOutTradeNoAndUserId(String outTrade, Long userId);

    public List<BroadBandAndPhoneDomain> findAllByUserId(Long userId);
}
